package com.ujs.eduservice.feign;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhangshihao
 * @create 2023-09-04 17:47
 */
@Component
@FeignClient("service-order")
public interface OrderFeignService {
    @ApiOperation("根据课程id和用户id查询订单表中订单状态")
    @GetMapping("/eduorder/torder/isBuyCourse/{courseId}/{memberId}")
    Boolean getOrderStatus(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
